import { baseRequest } from "@/utils/request";
const request = (url, ...arg) =>
  baseRequest(`/admin/v1/student/${url}`, ...arg);

export default {
  // 获取人员分页
  page(data) {
    return request("page", data);
  },
  // 提交表单 edit为true时为编辑，默认为新增
  save(data, edit = false) {
    return request(edit ? "save" : "save", data);
  },
  delete(data) {
    return request("delete", data);
  },
  batchDelete(data) {
    return request("batchDelete", data);
  },
  changeClasses(data) {
    return request("changeClasses", data);
  },
};
